//public class Student {
//
//    public String name;
//    public String gender;
//    public int age;
//    public double score;
//    public static String classRoom = "Bit01";
//
//    public Student(String name, String gender, int age, double score) {
//        this.age = age;
//        this.gender = gender;
//        this.name = name;
//        this.score = score;
//
//    }
//
//    public static void main(String[] args) {
//        System.out.println(Student.classRoom);
//
//        Student s1 = new Student("Li lei", "男", 18, 3.8);
//        Student s2 = new Student("Han MeiMei", "女", 19, 4.0);
//        Student s3 = new Student("Jim", "男", 18, 2.6);
//
//        System.out.println(s1.classRoom);
//        System.out.println(s2.classRoom);
//        System.out.println(s3.classRoom);
//    }
//}

public class Student {
    //实例成员变量
    private String name;
    private String gender;
    private int age;
    private double score;

    public Student() {
        System.out.println("I am Student in it()!");
    }

    //实例代码块
    {
        this.name = "bit";
        this.age = 12;
        this.gender = "man";
        System.out.println("I am instance init()!");
    }

    public void show() {
        System.out.println("name: " + name + " age: " + age + " gender: " + gender);
    }
}
